//
//  LSWEssenceViewController.m
//  BaiSi
//
//  Created by 李善武 on 16/5/9.
//  Copyright © 2016年 李善武. All rights reserved.
//

#import "LSWEssenceViewController.h"

@interface LSWEssenceViewController ()

@end

@implementation LSWEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    // 设置背景颜色
    self.view.backgroundColor = [UIColor redColor];
    
    // 设置导航栏属性
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"nav_item_game_icon"] style:UIBarButtonItemStylePlain target:self action:@selector(leftTest)];
    self.navigationItem.titleView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"navigationButtonRandom"] style:UIBarButtonItemStylePlain target:self action:nil];
    
}

- (void)leftTest{
    NSLog(@"点击了左边的按钮");
}
@end
